#include<iostream>
#include"epoll_server.hpp"
#include"log.hpp"
int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        std::cout<<"usage::"<<argv[0]<<" port"<<std::endl;
        return 0;
    }
    uint16_t port = std::stoi(argv[1]);
    EnableScrean();
    std::unique_ptr<epoll_server> svr = std::make_unique<epoll_server>(port);
    svr->loop();
    return 0;
}